<%@ page language="java" import="java.util.*" import="com.rmt.www.vo.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'changecontrol.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
    <script type="text/javascript" language="javascript" src="js/jquery-1.7.1.js"></script>
    <link href="css/Site.css" rel="stylesheet"
            type="text/css" />
    <script>
       
    </script>
  </head>
  
  <body>
  <div class='page' id='wrap'>
    <div id="header" style='background-color: #5c87b2' >
            <div id="title" >
                <h1>&nbsp;&nbsp;RMT Service for administrator</h1>
            </div>
              
            
                <div id="logindisplay">
                welcome <%=((User)session.getAttribute("currentUser")).getName()%>,  <a href='../RMT'>logout</a>
            </div>
            <br/>
            <div id="menucontainer">
            
                <ul id="menu">
                	<li><a href="adminHomeAction">Home</a></li>              
                    <li><a href='getProjectsForAdmin'>Projects</a></li>
                    <li><a href='accountManageAction?manageTarget=account'>Users</a></li>
                </ul>
            
            </div>
        </div>
    <div id='main'>
        <p style="font-size: 23">View all pending requests for <b><s:property value="pname"/></b></p>
        
        <h2>Feature Request List</h2>
        	<table border="1">
	        <tr>
	        	 <th>
	                title
	            </th>
	        	<th>
	                request type
	            </th>
	           
	            <th>
	                author name
	            </th>
	            <th>
	                updater name
	            </th>
	            <th>
	                priority
	            </th>
	            <th>
	                effort
	            </th>
	            <th>
	                created time
	            </th>
	        </tr>
	        <s:iterator value="featureArtifactRequestList" id="list" status="st">
		        <tr>
		            <td>
		                <a  href="requestDetailAction?rid=<s:property value='#list.id'/>&artifacttype=feature&pid=<s:property value='pid'/> "><s:property value="#list.title" /></a> 
		            </td>
		             <td>
		                <s:property value="#list.requesttype"/>
		            </td>
		            <td>
		                <s:property value="#list._authorname" /> 
		            </td>
		            <td>
		                <s:property value="#list._updatername" /> 
		            </td>
		            <td>
		                <s:property value="#list.priority" /> 
		            </td>
		            <td>
		                <s:property value="#list.effort" /> 
		            </td>
		            <td>
		                <s:property value="#list.createdtime" /> 
		            </td>
		        </tr>
		        </s:iterator>
	    </table>
        <h2>Requirement Request List</h2>
        <table border="1">
	        <tr>
	        	 <th>
	                title
	            </th> 
	        	<th>
	                request type
	            </th>
	           
	            <th>
	                author name
	            </th>
	            <th>
	                updater name
	            </th>
	            <th>
	                priority
	            </th>
	            <th>
	                effort
	            </th>
	            <th>
	                created time
	            </th>
	        </tr>
	        <s:iterator value="requirementArtifactRequestList" id="list" status="st">
		        <tr>
		            <td>
		                <a href="requestDetailAction?rid=<s:property value='#list.id'/>&artifacttype=requirement&pid=<s:property value='pid'/>  "><s:property value="#list.title" /></a> 
		            </td>
		             <td>
		                <s:property value="#list.requesttype"/>
		            </td>
		            <td>
		                <s:property value="#list._authorname" /> 
		            </td>
		            <td>
		                <s:property value="#list._updatername" /> 
		            </td>
		            <td>
		                <s:property value="#list.priority" /> 
		            </td>
		            <td>
		                <s:property value="#list.effort" /> 
		            </td>
		            <td>
		                <s:property value="#list.createdtime" /> 
		            </td>
		        </tr>
	        </s:iterator>
    </table>
        <h2>Design Request List</h2>
        <table border="1">
	        <tr>
	        	 <th>
	                title
	            </th> 
	            
	        	<th>
	                request type
	            </th>
	           
	            <th>
	                author name
	            </th>
	            <th>
	                updater name
	            </th>
	            <th>
	                priority
	            </th>
	            <th>
	                effort
	            </th>
	            <th>
	                created time
	            </th>
	        </tr>
	        <s:iterator value="designArtifactRequestList" id="list" status="st">
		        <tr>
		            <td>
		                <a href="requestDetailAction?rid=<s:property value='#list.id'/>&artifacttype=design&pid=<s:property value='pid'/>  "><s:property value="#list.title" /></a> 
		            </td>
		             <td>
		                <s:property value="#list.requesttype"/>
		            </td>
		         
		            <td>
		                <s:property value="#list._authorname" /> 
		            </td>
		            <td>
		                <s:property value="#list._updatername" /> 
		            </td>
		            <td>
		                <s:property value="#list.priority" /> 
		            </td>
		            <td>
		                <s:property value="#list.effort" /> 
		            </td>
		            <td>
		                <s:property value="#list.createdtime" /> 
		            </td>
		        </tr>
	        </s:iterator>
    </table>
        <h2>Implementation Request List</h2>
        <table border="1">
	        <tr>
	         <th>
	                title
	            </th> 
	        	<th>
	                request type
	            </th>
	            
	           
	           
	            <th>
	                author name
	            </th>
	            <th>
	                updater name
	            </th>
	            <th>
	                priority
	            </th>
	            <th>
	                effort
	            </th>
	            <th>
	                created time
	            </th>
	        </tr>
	        <s:iterator value="implementationArtifactRequestList" id="list" status="st">
		        <tr>
		            <td>
		                <a href="requestDetailAction?rid=<s:property value='#list.id'/>&artifacttype=implementation&pid=<s:property value='pid'/>  "><s:property value="#list.title" /></a> 
		            </td>
		          
		             <td>
		                <s:property value="#list.requesttype"/>
		            </td>
		           
		            <td>
		                <s:property value="#list._authorname" /> 
		            </td>
		            <td>
		                <s:property value="#list._updatername" /> 
		            </td>
		            <td>
		                <s:property value="#list.priority" /> 
		            </td>
		            <td>
		                <s:property value="#list.effort" /> 
		            </td>
		            <td>
		                <s:property value="#list.createdtime" /> 
		            </td>
		        </tr>
	        </s:iterator>
    </table>
        <h2>Test Case Request List</h2>
        <table border="1">
	        <tr>
	        	 
	            <th>
	                title
	            </th> 
	        	<th>
	                request type
	            </th>
	           
	            <th>
	                author name
	            </th>
	            <th>
	                updater name
	            </th>
	            <th>
	                priority
	            </th>
	            <th>
	                effort
	            </th>
	            <th>
	                created time
	            </th>
	        </tr>
	        <s:iterator value="testArtifactRequestList" id="list" status="st">
		        <tr>
		            <td>
		                <a href="requestDetailAction?rid=<s:property value='#list.id'/>&artifacttype=testcase&pid=<s:property value='pid'/>  "><s:property value="#list.title" /></a> 
		            </td>
		             <td>
		                <s:property value="#list.requestType"/>
		            </td>
		            <td>
		                <s:property value="#list._authorname" /> 
		            </td>
		            <td>
		                <s:property value="#list._updatername" /> 
		            </td>
		            <td>
		                <s:property value="#list.priority" /> 
		            </td>
		            <td>
		                <s:property value="#list.effort" /> 
		            </td>
		            <td>
		                <s:property value="#list.createdtime" /> 
		            </td>
		        </tr>
	        </s:iterator>
    </table>
    </div>
  	<div class="push"></div>
  	<div id="footer" style="background-color:#5c87b2;">
  	  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border:hidden;background-color:#5c87b2;">							
		<tbody style="border:hidden">
			<tr style="border: hidden">	
				<td width="160" style="border: hidden">&nbsp;</td>											   		<td>									
				<table width="60%" border="0" cellspacing="0" cellpadding="0" style="border:hidden;">	
					<tbody style="border: hidden">
						<tr style="border: hidden">
							<td height="20px"><font color='#ffffff'>©2012 Copyright NJU SEI RMT team</font></td>										
						</tr>										
						<tr style="border: hidden">											
							<td height="20px"><font color='#ffffff'>2012 graduation project: requirement management tool</font></td>	
						</tr>										
						<tr style="border: hidden">					
							<td height="20px"><font color='#ffffff'>project homepage：http://code.google.com/p/rmt-ss/</font></td>		
						</tr>									
					</tbody>
				</table>								
				</td>							
			</tr>						
		</tbody>
	</table>	
  	</div>
    </div>
  </body>
</html>
